package com.training.java.core.inheritance;

public class ChessPlayer extends Player{
	
// Calling the constructor from super class Player
	
	

	ChessPlayer(String nameOfPlayer,int number,String status)
	{
		super(nameOfPlayer,number, status);
	}
	
//method start
	boolean start()
	{
		super.start();
		
			System.out.println( "Chess Player started playing true/ false :"+ isStarted());
			
			return isStarted();
	}
	
// play chess method
	
	String playChess()
	{
	System.out.println( getName()+ "Chess Player  is playing ");
	return getName();
	}
	
	
//Overriding the method 
	

	String playerStatus() 
	
	{
		System.out.println("Thinking ........."+ getStatus());
		return getStatus();
	}
	
}